﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace QuestFramework.Combat
{
    public class CombatRules
    {
        int attackRating = 4;
        int defenseRating = 3;

        int weaponBonus = 5;
        int armorBonus = 3;

        int attackRollValue;
        int defenseRollValue;

        public bool PerformAttackCheck()
        {
            Character playerOne = new Character();
            Character playerTwo = new Character();

            Dice attackDice = new Dice(DiceType.D20, 1);
            Dice defenseDice = new Dice(DiceType.D6, 2);

            attackRollValue = attackDice.Roll();
            defenseRollValue = defenseDice.Roll();

            if (attackRollValue > defenseRollValue)
                return true;
            else
                return false;
        }

        public int LastAttackRoll
        {
            get { return attackRollValue; }
        }

        public int LastDefenseRoll
        {
            get { return defenseRollValue; }
        }
    }
}
